package com.lwh.dao;

import com.lwh.entity.Permission;
import com.lwh.entity.Role;
import com.lwh.entity.User;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface UserMapper {

    User findByUser(User user);

    User findByName(String userName);

    User findByPhone(String phone);

    List<Role> findRoleByUser(String userName);

    List<Permission> findPermByUser(String rid);
}
